﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Entity
{
    /// <summary>
    /// 报名表
    /// </summary>
    public class EnrollTable:User
    {
        /// <summary>
        /// 报名人
        /// </summary>
        [ForeignKey("A01")]
        public User?  UserInfo{ get; set; }
        /// <summary>
        /// 接待老师
        /// </summary>
        [ForeignKey("A01")]
        public User? Reception { get; set; }
        [Column("A001")]
        /// <summary>
        /// 到校时间
        /// </summary>
        public DateTime SchoolTime { get; set; }
        [Required]
        [Column("A002")]
        /// <summary>
        /// 所在系部
        /// </summary>
        public String? Department { get; set; }
        [Column("A003")]
        /// <summary>
        /// 报名费用
        /// </summary>
        public double Money { get; set; }
        [Column("A004")]
        /// <summary>
        /// 报名地点
        /// </summary>
        public string? Addres { get; set; }
    }
}
